package ru.study.jdbc.dao;

import java.sql.SQLException;

import ru.study.jdbc.dao.*;
import ru.study.jdbc.entity.*;


public class MainClass {
	
	
	public static void main(String[] args) {
		//читаем конфиг 
		//ConfigLoafer.readConfFile
		//cоздаем коннект
	 
	
		
		
		DAO dao = DaoManager.getDao();
		//*-------------------------------
		
				
		Student st = EntityManager.getStudent(3L);
		System.out.println(st);		
		//st.setMiddleName("QQQ");
		//System.out.println(EntityManager.saveStudent(st));		
		
		/*Student st2 = new Student("PP","GG","RRR",null,null);
		Student st3 = EntityManager.addStudent(st2);
		System.out.println(st3);
		EntityManager.deleteStudent(st3);*/
		
				
		//*-----------------------------
		//dao.closeConection();
	}

}
